/**
 * 课程模块API
 */

import axios from './request';

/**
 * 搜索课程
 * @param {*} obj 
 * @returns 
 */
export const Search = obj => axios.get('/course/search', { params: obj });

/**
 * 搜索课程
 * @param {*} obj 
 * @returns 
 */
export const SearchSelector = obj => axios.get('/course/searchSelector', { params: obj });

/**
 * 添加课程
 * @param {*} obj 
 * @returns 
 */
export const Add = obj => axios.post('/course/add', obj);

/**
 * 修改课程
 * @param {*} obj 
 * @returns 
 */
export const Update = obj => axios.put('/course/update', obj);

/**
 * 删除课程
 * @param {*} id 
 * @returns 
 */
export const Delete = id => axios.delete('/course/delete/' + id);